package com.zyx.wanshu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyx.wanshu.entity.MenuShowVO;
import com.zyx.wanshu.entity.Role;
import com.zyx.wanshu.vo.RoleMenuVO;
import com.zyx.wanshu.vo.RoleVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Yaxi.Zhang
 * @since 2022/7/15 22:10
 */
public interface IRoleService extends IService<Role> {

    RoleVO search(RoleVO vo);

    Boolean canIDeleteById(Integer id);

    List<MenuShowVO> getMenuShow();

    @Transactional
    void allocateMenu(RoleMenuVO vo);

    List<Integer> queryMenuByRoleId(Integer roleId);
}
